package com.spzx.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spzx.product.domain.Product;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface ProductService extends IService<Product> {
    List<Product> selectProductList(Product product);
    //添加商品



    @Transactional
    int insertProuduct(Product product);


    //获取商品详细信息
    Product selectProductById(Long id);


    //修改商品
    int updateProduct(Product product);

    //删除商品
    int deleteProductByIds(Long[] ids);
}
